'user strict';
angular.module('app').directive('appHead', ['cache', function (cache) {
    return {
        restrict: 'A',//以属性方式调用
        replace: true,
        templateUrl: 'view/template/head.html',
        link: function ($scope) {
            $scope.name = cache.get('name') || '';
        }

    }
}])